﻿<local:DocumentBase x:Class="WPFExcelReport.JLTCOST"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"     
                    xmlns:IVKPR="clr-namespace:WPFExcelReport;assembly=TICC_VKPRICE"       
                    xmlns:EX="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"   
                    FontSize="16"  
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                    Name="TV"
                    Loaded="Window_Loaded">
    <local:DocumentBase.Resources>
        <ucd:M2YD  x:Key="m2yd"/>
        <CollectionViewSource   x:Key="vwCOST" />
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="trim"/>
    </local:DocumentBase.Resources>
    <Grid> 
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"></RowDefinition>
            <RowDefinition Height="2*"></RowDefinition>
            <RowDefinition Height="3*"></RowDefinition>
        </Grid.RowDefinitions>
        <IVKPR:TIVKPR1 Grid.Row="0" Name="cVKP" dwIVKPR1="{Binding dwVKP,ElementName=TV}" ART="{Binding ARTP,ElementName=TV}"  />  
        <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Grid.Column="0">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="色号"></TextBlock>
                        <TextBlock Grid.Column="1" FontSize="14" Text="" Name="txtCOLOR" Background="White"></TextBlock>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="用纱"></TextBlock>
                        <TextBlock Grid.Column="1" FontSize="14" Text="" Name="txtYARN" Background="White"></TextBlock>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="纬密"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWEFTDEN" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="ROWID"></TextBlock>
                        <TextBlock Grid.Column="1" FontSize="14" Text="" Name="txtROWID" Background="White"></TextBlock>
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="1">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="经纱用量"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWARPUSAGE" TextChanged="YARNCOST" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="经纱单价"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWARPPRICE" TextChanged="YARNCOST" Background="White"/>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="订单单位"></TextBlock>
                    <TextBlock Grid.Column="1" FontSize="14" Text="" Name="txtPREH" Background="White"></TextBlock>
                </Grid>
            </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="2">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="纬纱用量"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWEFTUSAGE" TextChanged="YARNCOST" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="纬纱单价"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWEFTPRICE" TextChanged="YARNCOST" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="原料金额"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtYARNVALUE" Background="White"/>
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="3">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="经染单价"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWARPED" TextChanged="YARNCOST" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="纬染单价"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtWEFTED" TextChanged="YARNCOST" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="染色费用"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtDYEVALUE" Background="White"/>
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="4">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="整理费用"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtCOSTFIN" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="包装运费"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtCOSTPAKVV" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="其它"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtCOSTFADD" Background="White"/>
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="5">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="代理单价"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtAGENT" TextChanged="txtAGENT_TextChanged" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="海运单价"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtSHIP" TextChanged="txtSHIP_TextChanged" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="空运单价"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtFLIGHT" TextChanged="txtFLIGHT_TextChanged" Background="White"/>
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="0">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="本月汇率"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtRATE" TextChanged="txtRATE_TextChanged" Background="White" />
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="公司"></TextBlock>
                        <ComboBox  Grid.Column ="1" Name="cmbFACTORY" IsEditable="False" Background="White" >
                        <ComboBoxItem Content="JL"/>
                        <ComboBoxItem Content="MY"/>
                        <ComboBoxItem Content="WS"/>
                    </ComboBox  >
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="1">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="110"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="记帐日期"></TextBlock>
                        <DatePicker Grid.Column="1" HorizontalAlignment="Left"  FontSize="14" Name="FROM_DATE" Background="White"
                            Text="" SelectedDateChanged ="FROM_DATE_SelectedDateChanged"  />
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="110"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="发货日期"></TextBlock>
                        <DatePicker Grid.Column="1" HorizontalAlignment="Left" FontSize="14" Name="END_DATE" Background="White"
                            Text="" SelectedDateChanged ="END_DATE_SelectedDateChanged"  />
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="2">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="发票号码"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" MaxLength="15" Text="" Name="txtINVOICE" Background="White" CharacterCasing="Upper"></TextBox>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="货币"></TextBlock>
                        <ComboBox  Grid.Column ="1" IsEditable="False" Name="cmbCURRENCY" Background="White" SelectionChanged="cmbCURRENCY_SelectionChanged" >
                            <ComboBoxItem Content="USD"/>
                            <ComboBoxItem Content="RMB"/>
                            <ComboBoxItem Content="EUR"/>
                        </ComboBox  >
                </Grid>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="3">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="数量M"></TextBlock>
                        <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtQTYM" TextChanged="txtQTYM_TextChanged" Background="White"/>
                    </Grid>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="数量YRD"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtQTYY" TextChanged="txtQTYY_TextChanged" Background="White"/>
                    </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="金额(M)"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtVALUE" TextChanged="txtVALUE_TextChanged" Background="White"/>
                </Grid>
            </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="4">                    
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"></ColumnDefinition>
                            <ColumnDefinition Width="100"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" FontSize="14" Text="单价(M)"></TextBlock>
                    <TextBlock Grid.Column="1" FontSize="14" Text="" Name="txtPRICE" Background="White"></TextBlock>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="是否脱单"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtCOMMISSION" MaxLength="20" CharacterCasing="Upper" Background="White"></TextBox>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="是否新品"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtNEW" MaxLength="20" CharacterCasing="Upper" Background="White"></TextBox>
                </Grid>
            </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="5">
                    
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="制造费"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtPRODVALUE" CharacterCasing="Upper" Background="White"/>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="期间费用"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtOTHERSVALUE" CharacterCasing="Upper" Background="White"/>
                </Grid>
            </StackPanel>
            <StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="6">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="600"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                        <ColumnDefinition Width="30"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="14" Text="备注"></TextBlock>
                    <TextBox Grid.Column="1" FontSize="14" Text="" Name="txtREMARK" MaxLength="200" Background="White"></TextBox>
                    <Button Grid.Column="2" Content="插入记录" Name="btnINSERT" Height="33" Width="70" Click="btnINSERT_Click"/>
                    <Button Grid.Column="3" Content="修改保存" Name="btnUPDATE" Height="33" Width="70" Click="btnUPDATE_Click"/>
                    <TextBox Grid.Column="4" FontSize="18" Text="N" Name="txtSIGN" Background="White"></TextBox>
                    <Button Grid.Column="5" Content="删除记录" Name="btnDELETE" Height="33" Width="70" Click="btnDELETE_Click"/>
                </Grid>                
            </StackPanel>

        </Grid>
        <Grid Grid.Row="2" >
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <DataGrid  Grid.Row="0"  Grid.Column="0"
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"
                   Name="dlgMaster" 
                   GridLinesVisibility="All"
                    SelectionChanged="dlgMaster_SelectionChanged"
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwCOST}}" 
                   IsSynchronizedWithCurrentItem="True" IsReadOnly="True"
                    >
                <DataGrid.Columns>
                    <!--ROWNID,VKPART,VAABEZ,CONSTRUCTION,WARPDEN,WEFTDEN,KDKNAME,WARPUSAGE,WARPPRICE,WEFTUSAGE,WEFTPRICE,YARNVALUE,
                    WARPED,WEFTED,DYEVALUE,MCOSTFIN,MCOSTPAKVV,MCOSTFADD,MPRICEAGENT,MPRICESHIP,MPRICEFLIGHT,MCOSTADD,
                    MVKCOST,MCOSTGROSS,MCOSTNET,MCOSTNETW,HRNNAME-->
                    <DataGridTextColumn Header="ROWNID" Binding="{Binding ROWNID}" Width="Auto"/>
                    <DataGridTextColumn Header="发票号" Binding="{Binding INVOICE}" Width="Auto"/>
                    <DataGridTextColumn Header="任务书" Binding="{Binding VKPART}" Width="Auto"/>
                    <DataGridTextColumn Header="品名" Binding="{Binding VAABEZ, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                    <DataGridTextColumn Header="色号" Binding="{Binding COLOR, Converter={StaticResource ResourceKey=trim }}" Width="Auto" MaxWidth="50"/>
                    <DataGridTextColumn Header="用纱" Binding="{Binding YARN, Converter={StaticResource ResourceKey=trim }}" Width="Auto" MaxWidth="100"/>
                    <DataGridTextColumn Header="规格" Binding="{Binding CONSTRUCTION, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto" MaxWidth="100"/>
                    <DataGridTextColumn Header="类型" Binding="{Binding TYPE}" Width="Auto" MaxWidth="100"/>
                    <DataGridTextColumn Header="记帐日期" Binding="{Binding INVDAT}" Width="Auto"/>
                    <DataGridTextColumn Header="发货日期" Binding="{Binding DELDAT}" Width="Auto"/>
                    <DataGridTextColumn Header="经密" Binding="{Binding WARPDEN}" Width="Auto"/>
                    <DataGridTextColumn Header="纬密" Binding="{Binding WEFTDEN}" Width="Auto"/>
                    <DataGridTextColumn Header="客户" Binding="{Binding KDKNAME, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                    <DataGridTextColumn Header="码数" Binding="{Binding YDELQTY}" Width="Auto"/>
                    <DataGridTextColumn Header="米数" Binding="{Binding MDELQTY}" Width="Auto"/>
                    <DataGridTextColumn Header="经纱用量" Binding="{Binding WARPUSAGE}" Width="Auto"/>
                    <DataGridTextColumn Header="经纱单价" Binding="{Binding WARPPRICE}" Width="Auto"/>
                    <DataGridTextColumn Header="纬纱用量" Binding="{Binding WEFTUSAGE}" Width="Auto"/>
                    <DataGridTextColumn Header="纬纱单价" Binding="{Binding WEFTPRICE}" Width="Auto"/>
                    <DataGridTextColumn Header="原料金额" Binding="{Binding YARNVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="经染单价" Binding="{Binding WARPED}" Width="Auto"/>
                    <DataGridTextColumn Header="纬染单价" Binding="{Binding WEFTED}" Width="Auto"/>
                    <DataGridTextColumn Header="染色费" Binding="{Binding DYEVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="整理费" Binding="{Binding MCOSTFIN}" Width="Auto"/>
                    <DataGridTextColumn Header="包装运输费" Binding="{Binding MCOSTPAKVV}" Width="Auto"/>
                    <DataGridTextColumn Header="其它" Binding="{Binding MCOSTFADD}" Width="Auto"/>
                    <!--DataGridTextColumn Header="小计不含佣金等" Binding="{Binding MVKCOST}" Width="Auto"/-->
                    <DataGridTextColumn Header="佣金单价" Binding="{Binding MPRICEAGENT}" Width="Auto"/>
                    <DataGridTextColumn Header="佣金" Binding="{Binding MCOSTAGENT}" Width="Auto"/>
                    <DataGridTextColumn Header="海运单价" Binding="{Binding MPRICESHIP}" Width="Auto"/>
                    <DataGridTextColumn Header="海运费" Binding="{Binding MCOSTSHIP}" Width="Auto"/>
                    <DataGridTextColumn Header="空运单价" Binding="{Binding MPRICEFLIGHT}" Width="Auto"/>
                    <DataGridTextColumn Header="空运费" Binding="{Binding MCOSTFLIGHT}" Width="Auto"/>
                    <DataGridTextColumn Header="其它" Binding="{Binding MCOSTADD}" Width="Auto"/>
                    <DataGridTextColumn Header="成本合计" Binding="{Binding MCOSTUNIT}" Width="Auto"/>
                    <DataGridTextColumn Header="销售单价RMB" Binding="{Binding RMBPRICE}" Width="Auto"/>
                    <DataGridTextColumn Header="毛工交" Binding="{Binding MCOSTGROSS}" Width="Auto"/>
                    <DataGridTextColumn Header="净工交" Binding="{Binding MCOSTNET}" Width="Auto"/>
                    <DataGridTextColumn Header="工交总额" Binding="{Binding COSTTOT}" Width="Auto"/>
                    <DataGridTextColumn Header="万纬工交" Binding="{Binding COSTTOTW}" Width="Auto"/>
                    <DataGridTextColumn Header="营销员" Binding="{Binding STAFF, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                    <DataGridTextColumn Header="是否脱单" Binding="{Binding COMMISSION, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                    <DataGridTextColumn Header="是否新品种" Binding="{Binding NEWART, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                    <DataGridTextColumn Header="发票单价" Binding="{Binding PRICE}" Width="Auto"/>
                    <DataGridTextColumn Header="发票金额" Binding="{Binding INVVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="人民币金额" Binding="{Binding RMBVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="制造费" Binding="{Binding PRODVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="期间费用" Binding="{Binding OTHERSVALUE}" Width="Auto"/>
                    <DataGridTextColumn Header="备注" Binding="{Binding REMARK, Converter={StaticResource ResourceKey=gb2312 }}" Width="Auto"/>
                </DataGrid.Columns>
            </DataGrid  >
        </Grid> 
    </Grid>
</local:DocumentBase>
